//package com.trkj.service;
//
//import com.trkj.dao.DeptDao;
//import com.trkj.entity.Dept;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Repository;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//import javax.annotation.Resource;
//
//@Slf4j
//@Service
//public class DeptServiceImpl implements DeptService {
//    @Resource
//    private DeptDao deptDao;
//    public void setDeptDao(DeptDao deptDao) {
//        this.deptDao = deptDao;
//    }
//    @Override
//    public Dept findDeptById(int deptno) {
//        return deptDao.findDeptById(deptno);
//    }
////    @Override
////    @Transactional
////    public int addDept(Dept dept) {
////        int count= deptDao.addDept(dept);
////        //int i=9/0;
////        log.debug("完成插入{}",dept);
////        return count;
////    }
//}
